<div
    ng-class="{'-content':(entityType === 'content')}"
    ng-controller="Umbraco.PropertyEditors.ListView.ListLayoutController as vm">

    <div
        ng-if="entityType === 'media'"
        on-drag-leave="vm.dragLeave()"
        on-drag-end="vm.dragLeave()"
        on-drag-enter="vm.dragEnter()">

        <umb-file-dropzone
           ng-if="!vm.isRecycleBin"
           parent-id="{{vm.nodeId}}"
           files-uploaded="vm.onUploadComplete"
           accept="{{vm.acceptedFileTypes}}"
           max-file-size="{{vm.maxFileSize}}"
           hide-dropzone="{{options.filter.length > 0}}"
           compact="{{ items.length > 0 }}"
           files-queued="vm.onFilesQueue">
        </umb-file-dropzone>

        <umb-table
            ng-if="items"
            items="items"
            allow-select-all="options.bulkActionsAllowed"
            item-properties="options.includeProperties"
            on-select="vm.selectItem"
            on-click="vm.clickItem"
            on-select-all="vm.selectAll"
            on-selected-all="vm.isSelectedAll"
            on-sorting-direction="vm.isSortDirection"
            on-sort="vm.sort">
        </umb-table>

    </div>

    <div ng-if="entityType !== 'media'">

        <umb-table
            ng-if="items"
            items="items"
            allow-select-all="options.bulkActionsAllowed"
            item-properties="options.includeProperties"
            on-select="vm.selectItem"
            on-click="vm.clickItem"
            on-select-all="vm.selectAll"
            on-selected-all="vm.isSelectedAll"
            on-sorting-direction="vm.isSortDirection"
            on-sort="vm.sort">
        </umb-table>

    </div>

    <umb-empty-state
        ng-if="!items && options.filter.length > 0"
        position="center">
        <localize key="general_searchNoResult"></localize>
    </umb-empty-state>

    <umb-empty-state
        ng-if="!items && vm.isRecycleBin"
        position="center">
        <localize key="general_recycleBinEmpty"></localize>
    </umb-empty-state>

</div>
